<div class="mainbox">
    <div class="sitem">
        <div class="stitle">封面</div>
        {{#if $Cache.new_goods.preview_img_url}}
        <img bind-src="{{$Cache.new_goods.preview_img_url}}?imageView/1/w/120" />{{/if}}
        <img-uploader upload-server-url="{{config.other.upload_image}}" text="{{#if $Cache.new_goods.preview_img_url}}更换封面{{#else}}选择封面{{/if}}" bind-input-key="$Cache.new_goods.preview_img_url" bind-status="{{'$Cache.shelves.preview_img_url_upload_status'}}" one-way="true" style="display:inline-block;" max-width="200">
        </img-uploader>
        <div class="stitle">详情图片</div>
        <div>
            {{#each $Cache.shelves.detail_img_urls}}
            <img-uploader  bind-input-key="url" url="{{url}}" bind-status="{{'status'}}" text="选择商品详情图" max-width="200">
            </img-uploader>
            {{/each}}
        </div>
    </div>

    <div class="sitem">
        <div class="stitle">商品分类</div>
        <div class="titem">
            选择分类：
            <select event-onchange="{{'$Top.$Event.tag.use_tag'}}">
                <option selected="{{isSelected&&'true'}}">-请选择-</option>
                {{#each $Cache.shelves.bus_tags}} {{#if !_checked}}
                <option>{{tag_name}}</option>
                {{/if}} {{/each}}
            </select>
        </div>

        <div class="titem">
            已选类目(点击删除)： {{#each $Cache.shelves.bus_tags}} {{#if _checked}}
            <div event-click="{{'$Top.$Event.tag.unuse_tag'}}" class="tag" title="点击移除">{{tag_name}}</div>
            {{/if}} {{/each}}
        </div>

        <div class="titem">
            <L:input placeholder="分类名称" bind-input="{{'$Cache.tag.new_tag_name'}}" value="{{$Cache.tag.new_tag_name}}" description="添加新的分类"></L:input>
            <sbutton text="添加分类" shadownum1="0 0 10px 0" shadownum2="0 0 6px 0" class="btn" event-click="{{'$Event.tag.add_new_tag'}}"></sbutton>
        </div>
    </div>

    <div class="sitem">
        <div class="stitle">商品描述</div>
        <L:input placeholder="商品名称" bind-input="{{'$Cache.new_goods.goods_name'}}" value="{{$Cache.new_goods.goods_name}}"></L:input>
        <L:input placeholder="价格(元)" bind-input="{{'$Cache.new_goods.price'}}" value="{{$Cache.new_goods.price}}"></L:input>
        <L:input placeholder="库存" bind-input="{{'$Cache.new_goods.num'}}" value="{{$Cache.new_goods.num}}"></L:input>
        <L:input placeholder="计价单位" bind-input="{{'$Cache.new_goods.unit'}}" value="{{$Cache.new_goods.unit}}" description="(如：个，件，匹，斤等)"></L:input>
        <L:input maxlength="150" placeholder="商品简述" bind-input="{{'$Cache.new_goods.intro'}}" value="{{$Cache.new_goods.intro}}" description="不超过150个字"></L:input>
        <sbutton text="确定修改" shadownum1="0 0 10px 0" shadownum2="0 0 6px 0" class="btn" event-click="{{'$Event.shelves.put_goods'}}" disabled="{{$Cache.shelves.lock_submit_button}}"></sbutton>
    </div>
</div>
